package com.inspur.edp.metadata.rtcustomization.serverapi;

import io.iec.edp.caf.rpc.api.annotation.GspServiceBundle;
import io.iec.edp.caf.rpc.api.annotation.RpcParam;

/**
 * 元数据文件服务
 * 将元数据文件保存到指定目录，并读取指定目录下的元数据文件
 * 当前包元数据、idp元数据可以保存到文件中，暂无删除场景
 *
 * @author liangff
 * @since 0.1.0
 * 2024/12/6
 */
@GspServiceBundle(applicationName = "runtime", serviceUnitName = "Lcm", serviceName = "metadata-file")
public interface MetadataFileService {
    String get(@RpcParam(paramName = "metadataId") String metadataId, @RpcParam(paramName = "directoryPath") String directoryPath);

    void save(@RpcParam(paramName = "metadataId") String metadataId, @RpcParam(paramName = "directoryPath") String directoryPath, @RpcParam(paramName = "content") String content);

    void delete(@RpcParam(paramName = "metadataId") String metadataId, @RpcParam(paramName = "directoryPath") String directoryPath);
}
